package com.atguigu.eduservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.eduservice.entity.EduSubject;
import com.atguigu.eduservice.entity.result.subject.OneSubject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author 老王
 * @since 2020-05-19
 */
public interface EduSubjectService extends IService<EduSubject> {

    //通过exlc导入课程分类
    void importSubjectData(MultipartFile file, EduSubjectService subjectService);

    //根据分类名称查询分类
    EduSubject getByTitle(String title, String parentId);

    //查询课程分类(树形结构)
    List<OneSubject> nestedList();
}
